﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Data;
using MVCSS = ASPItalia.ModelVirtualCasting.Web.RiaServices;
using System.Collections.ObjectModel;
using System.Linq;
using ASPItalia.ModelVirtualCasting.Silverlight.BackOffice.Manager;
using System.ServiceModel.DomainServices.Client;

namespace ASPItalia.ModelVirtualCasting.Silverlight.BackOffice.Converters
{
    public class ColorCountConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            SolidColorBrush brush2 = new SolidColorBrush(Colors.Orange);

            int c = (int)value;

            if (c <= 2)
                return App.Current.Resources["HighLightColorBrush"] as SolidColorBrush;

            return brush2;
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
